﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KaiXin001er.Objects;

namespace KaiXin001er.Logic
{
    public partial class frmSlaveComfortList : Form
    {
        public 安抚信息 selectedValue = null;
        public frmSlaveComfortList(安抚列表 listInfo)
        {
            InitializeComponent();
            ls_comfor.Items.AddRange(listInfo.安抚信息列表.ToArray());
        }

        private void btn_ok_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.selectedValue = (安抚信息)ls_comfor.SelectedItem;
            this.Close();
        }

        private void btn_cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

    }
}
